import { defineStore } from 'pinia'
/**
 * const store = useCounterStore()
 * store.plus()
 * store.setCounter(10)
 * 获取值
 *  store.getter.count
 */
export const useCounterStore = defineStore('counter', {
    state: () => {
        return {
            m_id:0,
        }
    },
    actions: {
        savemId(mId:number) {
            this.m_id = mId
        }
    },
    getters: {
        mId: state => state.m_id,
    },
})
